import host from "@/config/index.js";
import http from "@/utils/http";

/**
 * @description 获取用户信息
 * @returns 
 */
export const userInfo = () => {
  return http({
    url: `${host.BASE_API}/user/v1/detail`,
    method: "GET",
    params: {},
  });
};


export const updateUser = (data) => {
  return http({
    url: `${host.BASE_API}/user/v1/updateUser`,
    method: "POST",
    data,
  });
};
export const updatePass = (data) => {
  return http({
    url: `${host.BASE_API}/user/v1/updatePass`,
    method: "POST",
    data,
  });
};

